//
//  Defines.h
//  NewsReader
//
//  Created by Xiangxiang on 16/4/14.
//  Copyright © 2016年 GaoSir_. All rights reserved.
//

#ifndef Defines_h
#define Defines_h

#define ENV_DEV             1           //开发环境；开发阶段、功能测试阶段
#define ENV_TEST            2           //测试环境；内测&公测版本
#define ENV_RELEASE         3           //正式环境；AppStore提交版本
#define APP_ENV             ENV_DEV     //当前环境

//区分环境，修改配置
#if(APP_ENV==ENV_DEV)
#define DEFINE_DEBUG        1           //打印日志

#elif(APP_ENV==ENV_TEST)
#define DEFINE_DEBUG        0           //打印日志

#elif(APP_ENV==ENV_RELEASE)
#define DEFINE_DEBUG        0           //不打印日志
#endif


#if DEFINE_DEBUG
#   define pr(args,...)     NSLog((@"%s(%d):" args),__PRETTY_FUNCTION__,__LINE__,##__VA_ARGS__);
#   define pr_obj(arg)      pr(@"%@",arg);
#   define pr_int(arg)      pr(@"%d",(int)arg);
#   define pr_float(arg)    pr(@"%f",arg);
#   define pr_rect(arg)     pr(@"CGRect(%f,%f,%f,%f)",arg.origin.x,arg.origin.y,arg.size.width,arg.size.height);
#   define pr_point(arg)    pr(@"CGPoint(%f,%f);",arg.x,arg.y);
#else
#   define pr(...)
#   define pr_obj(arg)
#   define pr_int(arg)
#   define pr_float(arg)
#   define pr_rect(arg)
#   define pr_point(arg)
#endif



#define JPUSH_APPKEY       @"60d87b391a67bf25349417dd"

#define IOS_VERSION        ([[[UIDevice currentDevice] systemVersion] floatValue])
#define IS_IOS8_OR_LATER   (IOS_VERSION >= 8.0)




#endif
